import * as memuIcons from '@ant-design/icons-vue';

const values = Object.values(memuIcons);
const keys: Array<string> = Object.keys(memuIcons);
const iconNames: Array<string> = [];

const iconMap: Map<string, any> = new Map;
for (let i: number = 0; i < values.length; ++i) {
    const key: string = keys[i];
    if (!key.endsWith('Outlined')) {
        continue;
    }
    const value: any = values[i];
    const displayName: string = value.displayName;
    if (displayName && displayName !== 'Icon') {
        iconMap.set(key, value);
        iconNames.push(displayName);
    }
}

export const IconNames: Array<string> = iconNames;

export default iconMap;
